package cn.demoncat.util.web.cloud.nacos.config;

import com.netflix.client.config.IClientConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Nacos配置
 *
 * @author 延晓磊
 * @since 2022年06月08日
 */
@Configuration
public class NacosConfig {

    /**
     * BUG临时处理
     *
     * 启动异常：NacosRibbonClientConfiguration required a bean of type 'com.netflix.client.config.IClientConfig' that could not be found.
     *
     * @return
     */
    @Bean
    public IClientConfig iClientConfig() {
        return IClientConfig.Builder.newBuilder().build();
    }

}
